package com.yyp.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.yyp.bean.CompanyInfo;
import com.yyp.dao.CompanyInfoDao;
import com.yyp.service.CompanyInfoService;
import com.yyp.service.ManagerService;

@Service
public class CompanyInfoServiceImpl implements CompanyInfoService {
	@Resource
	CompanyInfoDao companyInfoImpl;

	//
	// public void del(String names) {

	// CompanyInfoImpl.delete(names);
	// }

	/* (non-Javadoc)
	 * @see com.yyp.service.impl.CompanyInfoService#del(int)
	 */
	public void del(int id) {

		companyInfoImpl.delete(id);
	}

	/* (non-Javadoc)
	 * @see com.yyp.service.impl.CompanyInfoService#find(java.lang.Integer)
	 */
	public CompanyInfo find(Integer id) {
		return companyInfoImpl.find(id);
	}

	/* (non-Javadoc)
	 * @see com.yyp.service.impl.CompanyInfoService#find(java.lang.String)
	 */
	public CompanyInfo find(String name) {
		return companyInfoImpl.find(name);

	}

	/* (non-Javadoc)
	 * @see com.yyp.service.impl.CompanyInfoService#findAll()
	 */
	public List<CompanyInfo> findAll() {
		return companyInfoImpl.findAll();
	}

	/* (non-Javadoc)
	 * @see com.yyp.service.impl.CompanyInfoService#save(com.yyp.bean.CompanyInfo)
	 */
	public void save(CompanyInfo entity) {
		companyInfoImpl.save(entity);
	}

	/* (non-Javadoc)
	 * @see com.yyp.service.impl.CompanyInfoService#updata(com.yyp.bean.CompanyInfo)
	 */
	public void updata(CompanyInfo entity) {
		companyInfoImpl.updata(entity);
	}

}
